package com.jingtai.common.constants;

/**
 * Description: Redis常量
 * Create DateTime: 2020-03-24 13:54
 *
 * @author houyi
 */
public interface RedisConstant {

    /**
     * App登录用户key
     */
    String LOGIN_USER_PRE_KEY = "mall:loginUser:app:";

    /**
     * 后台-平台用户登录--token
     */
    String TOKEN_LOGIN_PLATFORM_PRE_KEY = "mall:loginUser:platform:token:";

    /**
     * 后台-商户登录--token
     */
    String TOKEN_LOGIN_MERCHANT_PRE_KEY = "mall:loginUser:merchant:token:";

    /**
     * 后台-供应商登录--token
     */
    String TOKEN_LOGIN_SUPPLIER_PRE_KEY = "mall:loginUser:supplier:token:";

    /**
     * 验证码
     */
    String VALIDATE_CODE = "mall:validate:app:";

    /**
     * 商城购物车前缀
     */
    String SHOP_CAR_PRE_KEY = "mall:shopCar:";

    /**
     * 短信验证码前缀-注册
     */
    String SMS_VERIFICATION_CODE_REGISTER = "mall:sms-verification-code:register:";

    /**
     * 短信验证码前缀-忘记密码
     */
    String SMS_VERIFICATION_CODE_FORGETPWD = "mall:sms-verification-code:forget-pwd:";

    /**
     * AccessToken
     */
    String ACCESS_TOKEN_PRE_KEY = "mall:accessToken-";
}
